using System;
using System.Runtime.Serialization;
using MediaForce.Client.Common.DataContracts;
using System.Collections.Generic;
using System.Data;

namespace MediaForce.Client.Common.DataContracts
{
    [KnownType(typeof(AppointmentItem))]
    [Serializable]
    [DataContract]
    public class OperationRequest
    {
        [DataMember]
        public  string Username { get; set; }

        [DataMember]
        public  string ClientToken { get; set; }

        [DataMember]
        public OutlookItemBase Data { get; set; }

        [DataMember]
        public OperationType OperationType { get; set; }

        [DataMember]
        public TargetType TargetType { get; set; }
    }
    public enum OperationType { Insert = 1, Update = 2, Delete = 4, Get = 16 }
    public enum TargetType { Contacts = 1, EMail = 2, Appointments = 4 }
}
